<?php
require_once 'application/library/db/gcDaoFactory.php';
require_once 'application/constant/daoConfig.php';
/**
 * 
 * supplier_services_supplierListService
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */

class supplier_services_supplierListService{

    private $objDaoFactory;

    public function __construct(){
        $this->objDaoFactory = gcDaoFactory::getInstance();
    }

    /**
     * 供应商总数取得
     * pbGetSupplierSum
     * @return  int     $intReturn
     */
    public function pbGetSupplierSum(){
        $objTestDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SUPPLIER_DAO);
        $intReturn = $objTestDao->pbGetSupplierSum();
        return $intReturn;
    }

    /**
     * 供应商情报一览取得
     * pbGetSupplierData
     * @param   array   $arrParameter
     * @return  array   $arrReturn
     */
    public function pbGetSupplierData($arrParameter){
        $objTestDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SUPPLIER_DAO);
        $arrReturn = $objTestDao->pbGetSupplierData($arrParameter, seachType::SEARCH_TYPE);
        return $arrReturn;
    }

    /**
     * 供应商情报一览件数取得
     * pbGetSupplierDataCount
     * @param   array   $arrParameter
     * @return  array   $arrReturn
     */
    public function pbGetSupplierDataCount($arrParameter){
        $objTestDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SUPPLIER_DAO);
        $arrReturn = $objTestDao->pbGetSupplierData($arrParameter, seachType::COUNT_TYPE);
        return $arrReturn;
    }

    /**
     * 供应商情报下载
     * pbGetDownloadData
     * @param   array   $arrParameter
     * @return  array   $arrReturn
     */
    public function pbGetDownloadData($arrParameter){
        $objTestDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SUPPLIER_DAO);
        $arrReturn = $objTestDao->pbGetSupplierData($arrParameter, seachType::DOWNLOAD_TYPE);
        return $arrReturn;
    }
}